package map.tile.server.util;

public class SM2Tile {
    private static final String publicKeyStr ="MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEqUT+QVONldXjsafu/Hk88tOdCHWX13/EtfYKfbIFAKesp4bpM+fk65nqiBS2la8DG70eTQS8hmwirWQ+Jc1oLw==";
    private static final String privateKeyStr ="MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQg1ORCRrVXHOJv6Q1QZnc8fHdWul0Rst3vLs5sBaOXR4OgCgYIKoEcz1UBgi2hRANCAASpRP5BU42V1eOxp+78eTzy050IdZfXf8S19gp9sgUAp6ynhukz5+TrmeqIFLaVrwMbvR5NBLyGbCKtZD4lzWgv";

    public static String encodeDataHexString(byte[] data) throws Exception {
        return SM2Util.encrypt(data,privateKeyStr,publicKeyStr);
    }

}
